// Detect compiler
#ifdef __AVR__ 
	#define CMOD
#else
	#define SERIAL
#endif


#ifdef CMOD
	#include "cmod.h"
	#define printf(...) /*printf (__VA_ARGS__)*/
#endif
#ifdef SERIAL
	#include "serial.h"
	#include <stdio.h>
	#define printf(...) printf (__VA_ARGS__)
#endif

void ir_initalize(int verbose);
void ir_finish(void);
void ir_send_byte(unsigned char);
unsigned char ir_get_byte(void);
void ir_sleep(unsigned int milliseconds);
unsigned int ir_time(void);
